<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<!-- 标题 -->
	<title>掌柜</title>
	<!-- 关键词 -->
	<meta name="keywords" content="" />
	<!-- 网站简介 -->
    <meta name="description" content="" />
    <!-- 自适应屏幕 -->
	<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
	<!-- IE兼容 -->
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<!-- 最新 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="css/bootstrap.css">
	<!-- 核心 CSS 文件 -->
	<link rel="stylesheet" href="css/style.css" type="text/css">
    <!-- jQuery文件 -->
    <script src="js/jquery.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="js/bootstrap.min.js"></script>
    <!-- 输入框信息检查判断 js-->
    <script src="js/input-rule.js"></script>
</head>
<body >
    <!-- Start shop-name -->
    <div class="shop-name">
        <!-- 固定顶部 -->
        <div class="shop-top clearfix">
            <div class="left">
                <a href="shop.html">取消</a>
            </div>
            <div class="shop">
                PAD数量
            </div>
            <div class="right">
                <input type="button" value="保存" id="st1">
            </div>
        </div>
        <div class="shop-edit">
            <input type="text" name="stext" id="shop-text" value="">
        </div>
    </div>
    <!-- End shop-name -->
    
    <script>
        window.onload = function cal(){
            var stext = $("#shop-text").val();
            if(stext==''){
                $("#st1").css("color","#999");
                $("#st1").attr({"disabled":true});
            }
            else{
                $("#st1").css("color","#fff");
                $("#st1").attr({"disabled":false});
            }
        }
        $('#shop-text').on("keyup blur", function() { //验证标题
            var _this = $(this);
            _this.inputCheck({
                callback : function(result){
                    if(!result.number){
                        $("#st1").css("color","#999"); 
                        $("#st1").attr({"disabled":true});
                    }else{
                        $("#st1").css("color","#fff");
                        $("#st1").attr({"disabled":false});
                    }
                }
            });
        });
    </script>
</body>
</html>